//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace.b;

import android.content.Context;
import android.os.Handler;

public final class f extends Thread {
    private Context a = null;
    private Handler b;
    private boolean c = true;
    private int d = 10;

    public f(Context var1, Handler var2) {
        this.a = var1;
        this.b = var2;
    }

    public final void run() {
        while(this.c) {
            if(d.a(this.a)) {
                e var1 = new e(this);
                a.a(com.baidu.trace.b.a.a.a, var1);
            } else {
                this.c = false;
                if(this.b != null) {
                    this.b.obtainMessage(19).sendToTarget();
                }
            }
        }

    }

    public final void a() {
        this.c = false;
    }

    public final void b() {
        a.e();
        --this.d;

        try {
            sleep(6000L);
        } catch (InterruptedException var1) {
            ;
        }
    }
}
